Add delay information display for pending messages in MessengerBundle#2967
Closed
Add delay information display for pending messages in MessengerBundle#2967
Conversation
Co-authored-by: dpfaffenbauer <5981845+dpfaffenbauer@users.noreply.github.com>
…nstants Co-authored-by: dpfaffenbauer <5981845+dpfaffenbauer@users.noreply.github.com>
Co-authored-by: dpfaffenbauer <5981845+dpfaffenbauer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add pending message display for delayed messages
Add delay information display for pending messages in MessengerBundle
Jan 29, 2026
|
NiklasBr
reviewed
Jan 29, 2026
| return $stamp?->getId(); | ||
| } | ||
|
|
||
| private function getDelayInfo(Envelope $envelope): ?string |
Contributor
There was a problem hiding this comment.
I think for this method @copilot can try to use
use Carbon\Carbon;
use Carbon\CarbonInterface;
$diff = Carbon::now()->subMilliseconds($delayMs);
return Carbon::now()->diffForHumans(other: $diff, syntax: CarbonInterface::DIFF_ABSOLUTE, parts: 2);|
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
Member
|
Co-authored-by: dpfaffenbauer <5981845+dpfaffenbauer@users.noreply.github.com>
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
This PR adds support for displaying delayed message information in the MessengerBundle admin interface, addressing the feature request where messages dispatched with
DelayStampwere not showing any indication of their delayed status.Changes
delayproperty toMessageDetailsclass to track message delay informationMessageRepositoryto extractDelayStampinformation from message envelopesdiffForHumansfor human-readable delay formatting with multiple parts (e.g., "1 day 2 hours")How it works
When messages are dispatched with a
DelayStamp, the delay duration is extracted from the envelope and displayed using Carbon'sdiffForHumansmethod (e.g., "1 day 2 hours"). Messages without a delay stamp will show an empty delay column, indicating they are available for immediate processing.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.